<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('在线发送')"/>
    <!--    <th:block th:include="include :: select2-css"/>-->
    <!--    <th:block th:include="include :: bootstrap-select-css"/>-->
</head>
<style>
    .select2-container--bootstrap .select2-results__group {
        color: rgb(119, 119, 119);
        display: block;
        font-size: 20px;
        line-height: 1.42857;
        white-space: nowrap;
        padding: 6px 12px;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">

    <div class="row">

        <div class="col-sm-12">

            <div class="tabs-container">

                <ul class="nav nav-tabs">
                    <!--                    <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 装备发送(未开发)</a>-->
<!--                    </li>-->
<!--                    <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">首饰发送(未开发)</a>-->
<!--                    </li>-->
                    <li class="active"><a data-toggle="tab" href="#tab-3" aria-expanded="true">法宝发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false" id="pet">宠物、坐骑发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">称谓发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">积分、元宝发送</a>
                    </li>
                    <!--<li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">热更上传</a>-->
                    <!--</li>-->
                    <li class=""><a data-toggle="tab" href="#tab-8" aria-expanded="false">道具发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-9" aria-expanded="false">充值发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-10" aria-expanded="false">公告发送</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-11" aria-expanded="false">清理道行、武学</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-12" aria-expanded="false">抓取游戏坐标</a>
                    </li>
                </ul>
                <div class="tab-content">
                    <!--                                                  装备发送                                                       -->
<!--                    <div id="tab-1" class="tab-pane active">-->
<!--                        <div class="panel-body">-->
<!--                            <strong>装备发送  <span class="help-block m-b-none">蓝色属性三条不可相同</span></strong>-->
<!--                            <div class="ibox-content">-->
<!--                                <form class="form-horizontal" id="form_equip">-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">用户名或者ID：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="用户名或者ID" class="form-control" name="name">-->
<!--                                        </div>-->
<!--                                    </div>-->

<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">装备等级：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="level" id="EquipmentLevel">-->
<!--                                                <option value="70">70级</option>-->
<!--                                                <option value="80">80级</option>-->
<!--                                                <option value="90">90级</option>-->
<!--                                                <option value="100">100级</option>-->
<!--                                                <option value="110">110级</option>-->
<!--                                                <option value="120">120级</option>-->
<!--                                                <option value="130">130级</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->

<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">装备类型：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="type" id="EquipmentType">-->
<!--                                                <option value="1">武器</option>-->
<!--                                                <option value="2">帽子</option>-->
<!--                                                <option value="3">衣服</option>-->
<!--                                                <option value="10">鞋子</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->

<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">装备名称：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="goodsName" id="goodsName">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性一：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="blueOne" id="blueOne">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入蓝色属性值" name="blueOneValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性二：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="blueTwo" name="blueTwo">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入蓝色属性值" name="blueTwoValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性三：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="blueThree" name="blueThree">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">蓝色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入蓝色属性值" name="blueThreeValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">粉色属性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="pink" name="pink">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">粉色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入粉色属性值" name="pinkValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">黄色属性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="yellow" id="yellow">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">黄色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入黄色属性值" name="yellowValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">绿色属性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="green" name="green">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">绿色属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入绿色属性值" name="greenValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">绿色暗属性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="remouldPro" name="remouldPro">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">绿色暗属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入改造暗属性值" name="remouldProValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">五行相性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="polarity" >-->
<!--                                                <option value="1">金</option>-->
<!--                                                <option value="2">木</option>-->
<!--                                                <option value="3">水</option>-->
<!--                                                <option value="4">火</option>-->
<!--                                                <option value="5">土</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">改造等级：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入改造等级" value="12" name="remouldLevel" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">共鸣属性：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" id="resonance" name="resonance">-->
<!--                                                <option value="">请选择</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                        <label class="col-sm-3 control-label">共鸣属性值：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" placeholder="请输入共鸣属性值" name="resonanceValue" class="form-control" value="10">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <div class="col-sm-offset-3 col-sm-8">-->
<!--                                            <button class="btn btn-sm btn-white" type="button" onclick="send_equip()">立即发送</button>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </form>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                    <!--                                                  首饰发送                                                       -->
<!--                    <div id="tab-2" class="tab-pane">-->
<!--                        <div class="panel-body">-->
<!--                            <strong>首饰发送</strong>-->
<!--                            <div class="ibox-content">-->
<!--                                <form class="form-horizontal" id="form_ornaments">-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">用户名或者ID：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <input type="text" name="name" placeholder="用户名或者ID" class="form-control">-->
<!--                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <label class="col-sm-3 control-label">首饰类型：</label>-->
<!--                                        <div class="col-sm-8">-->
<!--                                            <select class="form-control" name="goodsName">-->
<!--                                                <optgroup label="玉佩">-->
<!--                                                    <option value="蟠螭结">蟠螭结</option>-->
<!--                                                    <option value="七龙珠">七龙珠</option>-->
<!--                                                    <option value="金蝉宝囊">金蝉宝囊</option>-->
<!--                                                    <option value="通灵宝玉">通灵宝玉</option>-->
<!--                                                    <option value="寒玉龙勾">寒玉龙勾</option>-->
<!--                                                    <option value="八宝如意">八宝如意</option>-->
<!--                                                    <option value="游火灵焰">游火灵焰</option>-->
<!--                                                </optgroup>-->
<!--                                                <optgroup label="项链">-->
<!--                                                    <option value="雪魂丝链">雪魂丝链</option>-->
<!--                                                    <option value="天机锁链">天机锁链</option>-->
<!--                                                    <option value="秘魔灵珠">秘魔灵珠</option>-->
<!--                                                    <option value="金碧莲花">金碧莲花</option>-->
<!--                                                    <option value="流光绝影">流光绝影</option>-->
<!--                                                    <option value="五蕴悯光">五蕴悯光</option>-->
<!--                                                    <option value="千彩流光">千彩流光</option>-->
<!--                                                </optgroup>-->
<!--                                                <optgroup label="手镯">-->
<!--                                                    <option value="法文手轮">法文手轮</option>-->
<!--                                                    <option value="闭月双环">闭月双环</option>-->
<!--                                                    <option value="三清手镯">三清手镯</option>-->
<!--                                                    <option value="天星奇光">天星奇光</option>-->
<!--                                                    <option value="碎梦涵光">碎梦涵光</option>-->
<!--                                                    <option value="九天霜华">九天霜华</option>-->
<!--                                                    <option value="岚金火链">岚金火链</option>-->
<!--                                                </optgroup>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <div class="form-group">-->
<!--                                        <div class="col-sm-offset-3 col-sm-8">-->
<!--                                            <button class="btn btn-sm btn-white" type="button" onclick="send_ornaments()" >立即发送</button>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </form>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                    <!--                                                  法宝发送                                                       -->
                    <div id="tab-3" class="tab-pane active">
                        <div class="panel-body">
                            <strong>法宝发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_magicWeapon">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户名或者ID：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="name" placeholder="用户名或者ID" class="form-control">
                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">法宝等级：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="法宝等级" name="level" id="level" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">法宝名称：</label>
                                        <div class="col-sm-8">
                                            <select class="form-control" name="magicWeapon" id="magicWeapon">
                                                <option value="番天印">番天印</option>
                                                <option value="定海珠">定海珠</option>
                                                <option value="阴阳镜">阴阳镜</option>
                                                <option value="卸甲金葫">卸甲金葫</option>
                                                <option value="混元金斗">混元金斗</option>
                                                <option value="九龙神火罩">九龙神火罩</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">法宝相性：</label>
                                        <div class="col-sm-8">
                                            <select class="form-control" name="polarity" id="polarity">
                                                <option value="1">金</option>
                                                <option value="2">木</option>
                                                <option value="3">水</option>
                                                <option value="4">火</option>
                                                <option value="5">土</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_magicWeapon()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!--                                                  宠物/坐骑发送                                                       -->
                    <div id="tab-4" class="tab-pane">
                        <div class="panel-body">
                            <strong>宠物、坐骑发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_pet">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户名或者ID：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="name" placeholder="用户名或者ID" class="form-control">
                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">宠物名字：</label>
                                        <div class="col-sm-8">
                                            <select class="form-control" name="goodsName" id="petName">

                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">宠物类型：</label>
                                        <div class="col-sm-8">
                                            <select name="type" style="background-color: #EEEEEE;" readonly = "readonly" id="petType" class="form-control m-b" th:with="type=${@dict.getType('pet_type')}">
                                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group" d="pet_rac">getChangeCardType
                                        <label class="col-sm-3 control-label">宠物种类：</label>
                                        <div class="col-sm-8">
                                            <select  name="rac" style="background-color: #EEEEEE;" readonly = "readonly" id="petRac" class="form-control m-b" th:with="type=${@dict.getType('pet_kind')}">
                                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">宠物相性：</label>
                                        <div class="col-sm-8">
                                            <select name="polar" id="petPolar" class="form-control m-b" th:with="type=${@dict.getType('game_five')}">
                                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group" id="degree_" style="display: none">
                                        <label class="col-sm-3 control-label">坐骑阶数：</label>
                                        <div class="col-sm-8">
                                            <select name="degree" id="degree" class="form-control m-b" th:with="type=${@dict.getType('game_class')}">
                                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">宠物外观：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="宠物外观" name="icon" id="icon" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">携带等级：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入携带等级" name="levelReq"  value="0" id="petLevelReq" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">血量成长：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入宠物血量成长" name="life"  value="0" id="petLife" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">法力成长：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入宠物法力成长" name="mana"  value="0" id="petMana" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">物攻成长：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入宠物物攻成长" name="phyAttack"  value="0" id="petPhyAttack" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">法功成长：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入宠物防御成长" name="magAttack" id="petMagAttack"  value="0" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">速度成长：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="请输入宠物速度成长" name="speed" id="petSpeed"  value="0" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_pet()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!--                                                  称谓发送                                                       -->
                    <div id="tab-5" class="tab-pane">
                        <div class="panel-body">
                            <strong>称谓发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_title">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户名或者ID：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="name" placeholder="用户名或者ID" class="form-control">
                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">称谓：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="title" placeholder="请输入称谓" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_title()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!--                                                  积分、元宝、抽奖发送                                          -->
                    <div id="tab-6" class="tab-pane">
                        <div class="panel-body">
                            <strong>充值、积分、元宝发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_coin">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户名或者ID：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="name" placeholder="用户名或者ID" class="form-control">
                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">充值类型：</label>
                                        <div class="col-sm-8">
                                            <select class="form-control" name="type" >
                                                <option value="1">积分</option>
                                                <option value="0">元宝</option>
                                                <option value="2">抽奖</option>
                                                <option value="3">充值</option>
                                                <option value="4">奇门积分</option>
                                                <option value="5">好心值</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">额度：</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="num" placeholder="额度" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_coin()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
<!--                    <div id="tab-7" class="tab-pane">-->
<!--                        <div class="panel-body">-->
<!--                            <strong>热更上传</strong>-->
<!--                            <div class='main'>-->

<!--                                <input type='file' class='filebutton' style='display:none' onchange='fileSelected()' /> <br>-->

<!--                                <button class="upload" onclick='openFileDialog()' > 选择文件上传 </button>-->

<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div id="tab-8" class="tab-pane">
                        <div class="panel-body">
                            <strong>道具发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_item">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户名</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="name" placeholder="用户名" class="form-control">
                                            <span class="help-block m-b-none">目前只支持用户角色名称</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">物品名称：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="物品名称" name="itemName" id="itemName" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">物品数量：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="物品数量" name="itemNum" id="itemNum" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_item()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div id="tab-9" class="tab-pane">
                        <div class="panel-body">
                            <strong>充值发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_money">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户账号</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="account" placeholder="用户账号" class="form-control">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">充值金额：</label>
                                        <div class="col-sm-8">
                                            <input type="text" placeholder="充值金额" name="money" id="money" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_money()">立即充值</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div id="tab-10" class="tab-pane">
                        <div class="panel-body">
                            <strong>公告发送</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_notice">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">公告内容</label>
                                        <div class="col-sm-8">
                                            <input type="text" name="content" id = "gonggao" placeholder="公告内容" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-3 col-sm-8">
                                            <button class="btn btn-sm btn-white" type="button" onclick="send_notice()">立即发送</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div id="tab-11" class="tab-pane">
                        <div class="panel-body">
                            <strong>道行/武学</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_dao">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">补偿物品所需道行</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="limit" placeholder="（年）" class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">奖励物品名称</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="itemName" placeholder="奖励物品名称" class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">奖励物品数量</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="itemNum" placeholder="0" class="form-control">
                                        </div>
                                    </div>
                                   <div class="form-group">
                                       <label class="col-sm-1 control-label">保留道行</label>
                                       <div class="col-sm-3">
                                           <input type="text" name="reserveDao" placeholder="0" class="form-control">
                                       </div>
                                       <div class="col-sm-offset-3 col-sm-4">
                                           <button class="btn btn-sm btn-info" type="button" onclick="send_dao()">立即处理</button>
                                       </div>
                                   </div>

                                </form>
                                <form class="form-horizontal" id="form_wuxue">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">补偿物品所需武学</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="limit" placeholder="（点数）" class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">奖励物品名称</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="itemName" placeholder="奖励物品名称" class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">奖励物品数量</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="itemNum" placeholder="0" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">保留武学</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="reserveWu" placeholder="0" class="form-control">
                                        </div>
                                        <div class="col-sm-offset-3 col-sm-4">
                                            <button class="btn btn-sm btn-info" type="button" onclick="send_wuxue()">立即处理</button>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>

                    <div id="tab-12" class="tab-pane">
                        <div class="panel-body">
                            <strong>坐标</strong>
                            <div class="ibox-content">
                                <form class="form-horizontal" id="form_zuobiao">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">角色名称</label>
                                        <div class="col-sm-2">
                                            <input type="text" name="name" id = "role_name"  class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">X</label>
                                        <div class="col-sm-2">
                                            <input type="text" id = "x" name="x" placeholder="X" class="form-control">
                                        </div>
                                        <label class="col-sm-1 control-label">Y</label>
                                        <div class="col-sm-2">
                                            <input type="text" id = "y" name="y" placeholder="Y" class="form-control">
                                        </div>
                                        <div class="col-sm-offset-3 col-sm-3">
                                            <button class="btn btn-sm btn-info" type="button" onclick="get_rolexy()">获取坐标</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

        </div>

    </div>

</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: send-js"/>

<th:block th:include="include :: bootstrap-select-js"/>
<th:block th:include="include :: bootstrap-fileinput-css" />
<th:block th:include="include :: bootstrap-fileinput-js" />
<script src="../static/ruoyi/js/sm-ui.js" th:src="@{/ruoyi/js/sm-ui.js?v=4.2.0}"></script>
<script type="text/javascript">
    var GongGaoUrl = ctx + "/system/accountrole/findGongGao"

    var gonggaoConfig = {
        url: GongGaoUrl,
        type: "post",
        dataType: "json",
        success: function(result) {

            var obj = document.getElementById("gonggao");      //根据dom的id属性返回dom对象
            obj.value = result.data.content;
        }
    };
    $.ajax(gonggaoConfig)


    var prefix = ctx + "system/cacheManage"
    // 宠物发送
    function send_pet() {
        $.operate.saveSend(prefix + "/send_pet", $('#form_pet').serialize());
    }
    // 装备发送
    function send_equip() {
        $.operate.saveSend(prefix + "/send_equipment", $('#form_equip').serialize());
    }
    // 元宝、积分、抽奖发送
    function send_coin() {
        $.operate.saveSend(prefix + "/send_coin", $('#form_coin').serialize());
    }
    // 称谓发送
    function send_title() {
        $.operate.saveSend(prefix + "/send_title", $('#form_title').serialize());
    }
    // 坐骑发送
    function send_mounts() {
        $.operate.saveSend(prefix + "/send_mounts", $('#form_mounts').serialize());
    }
    // 首饰发送
    function send_ornaments() {
        $.operate.saveSend(prefix + "/send_ornaments", $('#form_ornaments').serialize());
    }
    // 法宝发送
    function send_magicWeapon() {
        $.operate.saveSend(prefix + "/send_magicWeapon", $('#form_magicWeapon').serialize());
    }
    // 法宝发送
    function send_item() {
        $.operate.saveSend(prefix + "/send_item", $('#form_item').serialize());
    }
    // 法宝发送
    function send_money() {
        $.operate.saveSend(prefix + "/send_money", $('#form_money').serialize());
    }
    function send_notice() {
        $.operate.saveSend(prefix + "/send_notice", $('#form_notice').serialize());
    }
    function send_dao() {
        $.operate.saveSend(prefix + "/clearRoleDao", $('#form_dao').serialize());
    }
    function send_wuxue() {
        $.operate.saveSend(prefix + "/clearPetWu", $('#form_wuxue').serialize());
    }
    function get_rolexy() {
        var obj = document.getElementById("role_name");
        var rolexyUrl = ctx + "/system/accountrole/getRolexy"
         var xyConfig = {
            url: rolexyUrl,
            type: "post",
            dataType: "json",
            data: {"name":obj.value,},
            success: function(result) {
                var obj = document.getElementById("x");      //根据dom的id属性返回dom对象
                obj.value = result.data.x;

                var objy = document.getElementById("y");      //根据dom的id属性返回dom对象
                objy.value = result.data.y;
            }
        };
     $.ajax(xyConfig)


    }

    function openFileDialog()

    {

        $(".filebutton").click();

    }

    function fileSelected()

    {

        var fbutton = $(".filebutton")[0];//dom元素
        var file = fbutton.files[0];
        sendFile(file,this);
    }
    // 上传文件
    function sendFile(file, obj) {
        var data = new FormData();
        data.append("file", file);
        $.ajax({
            type: "POST",
            url: ctx + "common/upload2",
            data: data,
            cache: false,
            contentType: false,
            processData: false,
            dataType: 'json',
            success: function(result) {
                if (result.code == web_status.SUCCESS) {
                    $.modal.alertWarning("热更上传成功。");
                    setTimeout(waitLongTime,3000)

                } else {
                    $.modal.alertError(result.msg);
                }
            },
            error: function(error) {
                $.modal.alertWarning("图片上传失败。");
            }
        });
    }
    function waitLongTime(){
        location.reload()
    }


</script>
</body>
</html>
